package com.conan.zone.util;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.apache.commons.codec.digest.DigestUtils;

public class Tester {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Tester t = new Tester();
		//t.test2();
		B b = new B();
		B b2 = new B();
		C c = new C();
	}
	
	public void test2(){
		ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()*4);
		List<Integer> list = new ArrayList<Integer>();
		list.add(1);
		list.add(2);
		list.add(3);
		for (final Integer integer : list) {
			executor.execute(new Runnable(){
				@Override
				public void run() {
					System.out.println(integer);
				}
			});
		}
		executor.shutdown();
	}
	
	public void test1(){
		System.out.println(DigestUtils.md5Hex("123456"));
	}

}

abstract class A{
	static{
		System.out.println("ddddd");
	}
	{
		System.out.println("====================");
	}
}

class B extends A{
	
}

class C extends A{
	
}
